var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.curNodeEventEnd(true);
            cm.eventSKill(0);
            cm.setInGameDirectionMode(true, false, true);
            cm.setStandAloneMode(true);
            cm.inGameDirectionEvent_SetAdditionalEffectVisibleForInGameDirection();
            cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 0, 2);
            cm.inGameDirectionEvent_PushScaleInfo(0, 0, 2000, 0, -680, 100);
            cm.curNodeEventEnd(true)
        } else {
            if (status === a++) {
                cm.inGameDirectionEvent_AskAnswerTime(300)
            } else {
                if (status === a++) {
                    cm.inGameDirectionEvent_ForcedFlip10(2, 450);
                    cm.inGameDirectionEvent_PushScaleInfo(3000, 0, 2000, 3000, -360, 100)
                } else {
                    if (status === a++) {
                        cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 0, 2);
                        cm.inGameDirectionEvent_AskAnswerTime(1200)
                    } else {
                        if (status === a++) {
                            cm.fieldEffect_InsertCanvas(0, 0, 0, 0, 0, 1000, 0);
                            cm.inGameDirectionEvent_AskAnswerTime(1400)
                        } else {
                            if (status === a++) {
                                cm.inGameDirectionEvent_AskAnswerTime(1500)
                            } else {
                                if (status === a++) {
                                    cm.sendNormalTalk_Bottom("#face7#好像就是这附近一带……可什么都没有啊？\r\n看样子可能是和某个野兽的声音搞混了吧。", 37, 3001674 + cm.getPlayer().getGender(), false, true);
                                    cm.effect_Voice("Voice5.img/hoyoung/B-1/" + (cm.getPlayer().getGender() == 0 ? "Male" : "Female") + "/1", 100)
                                } else {
                                    if (status === a++) {
                                        cm.inGameDirectionEvent_ForcedFlip10(2, 10);
                                        cm.inGameDirectionEvent_AskAnswerTime(500)
                                    } else {
                                        if (status === a++) {
                                            cm.inGameDirectionEvent_ForcedFlip10(1, 20);
                                            cm.inGameDirectionEvent_AskAnswerTime(500)
                                        } else {
                                            if (status === a++) {
                                                cm.inGameDirectionEvent_ForcedFlip10(2, 10);
                                                cm.inGameDirectionEvent_AskAnswerTime(1500)
                                            } else {
                                                if (status === a++) {
                                                    cm.inGameDirectionEvent_PushScaleInfo(1500, 0, 1250, 1500, -360, 10)
                                                } else {
                                                    if (status === a++) {
                                                        cm.inGameDirectionEvent_AskAnswerTime(2000)
                                                    } else {
                                                        if (status === a++) {
                                                            cm.sendNormalTalk_Bottom("#face8#不是，更重要的是这里该不会是……后山吧！？", 37, 3001674 + cm.getPlayer().getGender(), false, true);
                                                            cm.effect_Voice("Voice5.img/hoyoung/B-1/" + (cm.getPlayer().getGender() == 0 ? "Male" : "Female") + "/2", 100)
                                                        } else {
                                                            if (status === a++) {
                                                                cm.sendNormalTalk_Bottom("#face8#天啊！我光顾着声音，给彻底忘光了！\r\n师父明令我禁止出入这里的！", 37, 3001674 + cm.getPlayer().getGender(), true, true);
                                                                cm.effect_Voice("Voice5.img/hoyoung/B-1/" + (cm.getPlayer().getGender() == 0 ? "Male" : "Female") + "/3", 100)
                                                            } else {
                                                                if (status === a++) {
                                                                    cm.sendNormalTalk_Bottom("#face8#赶紧回去吧，要是暴露了，免不了被师父狠狠训一顿……", 37, 3001674 + cm.getPlayer().getGender(), true, true);
                                                                    cm.effect_Voice("Voice5.img/hoyoung/B-1/" + (cm.getPlayer().getGender() == 0 ? "Male" : "Female") + "/4", 100)
                                                                } else {
                                                                    if (status === a++) {
                                                                        cm.inGameDirectionEvent_AskAnswerTime(1000)
                                                                    } else {
                                                                        if (status === a++) {
                                                                            cm.sendNormalTalk_Bottom("#face0#是这里……小老虎……", 37, 3001676, false, true);
                                                                            cm.effect_Voice("Voice5.img/hoyoung/B-1/" + (cm.getPlayer().getGender() == 0 ? "Male" : "Female") + "/5", 100)
                                                                        } else {
                                                                            if (status === a++) {
                                                                                cm.inGameDirectionEvent_ForcedFlip10(2, 10);
                                                                                cm.sendNormalTalk_Bottom("#face7#这不是刚刚那个声音吗？什么情况？", 37, 3001674 + cm.getPlayer().getGender(), true, true);
                                                                                cm.effect_Voice("Voice5.img/hoyoung/B-1/" + (cm.getPlayer().getGender() == 0 ? "Male" : "Female") + "/6", 100)
                                                                            } else {
                                                                                if (status === a++) {
                                                                                    cm.inGameDirectionEvent_AskAnswerTime(500)
                                                                                } else {
                                                                                    if (status === a++) {
                                                                                        cm.inGameDirectionEvent_ForcedFlip10(2, 500);
                                                                                        cm.inGameDirectionEvent_PushScaleInfo(3000, 0, 1500, 3000, 0, 70)
                                                                                    } else {
                                                                                        if (status === a++) {
                                                                                            cm.inGameDirectionEvent_AskAnswerTime(2500)
                                                                                        } else {
                                                                                            if (status === a++) {
                                                                                                cm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 500, 2);
                                                                                                cm.inGameDirectionEvent_AskAnswerTime(500)
                                                                                            } else {
                                                                                                if (status === a++) {
                                                                                                    cm.forceCompleteQuest(39511);
                                                                                                    cm.gainExp(12);
                                                                                                    cm.gainExp(29);
                                                                                                    cm.OverlapScreenDetail19(0, 1000, 3000, 1);
                                                                                                    cm.inGameDirectionEvent_PushScaleInfo(0, 0, 1000, 2147483647, 2147483647, 2147483647);
                                                                                                    cm.gainItem(4036576, -10)
                                                                                                } else {
                                                                                                    if (status === a++) {
                                                                                                        cm.inGameDirectionEvent_PushMoveInfo(1, 0, 0, 0)
                                                                                                    } else {
                                                                                                        if (status === a++) {
                                                                                                            cm.inGameDirectionEvent_AskAnswerTime(300)
                                                                                                        } else {
                                                                                                            if (status === a++) {
                                                                                                                cm.fieldEffect_RemoveOverlapScreenDetail(1000);
                                                                                                                cm.inGameDirectionEvent_PushMoveInfo(1, 0, 0, 0)
                                                                                                            } else {
                                                                                                                if (status === a++) {
                                                                                                                    cm.setStandAloneMode(false);
                                                                                                                    cm.eventSKill(0);
                                                                                                                    cm.setInGameDirectionMode(false, true, false);
                                                                                                                    cm.dispose();
                                                                                                                    cm.warp(993160005, 0, false)
                                                                                                                }
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
};